import request from '@/utils/request'

// 查询订单支出费用审核列表
export function listNode(query) {
  return request({
    url: '/audit/node/list',
    method: 'get',
    params: query
  })
}

// 查询订单支出费用审核详细
export function getNode(id) {
  return request({
    url: '/audit/node/' + id,
    method: 'get'
  })
}
//节点明细
export function getSortList(id) {
  return request({
    url: '/audit/node/getSortList/' + id,
    method: 'get'
  })
}
// 新增订单支出费用审核
export function addNode(data) {
  return request({
    url: '/audit/node',
    method: 'post',
    data: data
  })
}

// 修改订单支出费用审核
export function updateNode(data) {
  return request({
    url: '/audit/node',
    method: 'put',
    data: data
  })
}

// 删除订单支出费用审核
export function delNode(id) {
  return request({
    url: '/audit/node/' + id,
    method: 'delete'
  })
}

// 导出订单支出费用审核
export function exportNode(query) {
  return request({
    url: '/audit/node/export',
    method: 'get',
    params: query
  })
}
